<html>
<body>
<input type="button" onclick="callAndroid()" value="callAndroid">
<input type="button" onclick="showDetail(688)" value="showDetail">
<input type="button" onclick="showAlert()" value="showAlert">
<input type="button" onclick="showConfirm()" value="showConfirm">
<input type="button" onclick="showPrompt()" value="showPrompt">



</body>
<script>
    function callAndroid(){
    document.location = "js://webview?arg1=111&arg2=222&name=lisa";
    }
    function showDetail(productID){
        document.location = "js://webview?func=showDetail&id=" + productID;
    }
    function showAlert(){
    alert("js://webview?func=showDetail&id=666");
    }
      function showConfirm(){
      var result = confirm("js://webview?func=getInfo");
      if(result == true){
      document.write("你好，帅哥");
      }else{
        document.write("你好，美女");
      }
          }
    function showPrompt(){
     var name = prompt("js://webview?func=getName");
     document.write("你好" + name);



}
















</script>


</html>